package com.hengpeng.itfin.service.activity;

import java.util.Date;
import java.util.List;

import com.hengpeng.itfinbase.en.RewardRebateStatus;

/**
 * 返利服务
 * 
 * @author weiyuan
 *
 */
public interface RebateService {

    /**
     * 更新返利状态
     * 
     * @param userId
     * @param oldStatus
     * @param newStatus
     * @param updateTime
     * @param payTime
     * @return
     */
    public int updateStatus(long userId, RewardRebateStatus oldStatus, RewardRebateStatus newStatus, Date updateTime,
            Date payTime);

    /**
     * 根据状态获取返利
     * 
     * @param status
     * @return
     */
    public List<Object[]> findRewardRebateByStatus(RewardRebateStatus status);
    /**
     * 激活返利
     * @param investInfoId
     * @param d
     * @return
     */
    public int activeByReferenceId(String investInfoId, Date d);

}
